import 'package:flutter/material.dart';
import 'package:get/route_manager.dart';

class Dialogs {
  static void showSuccess({String title = "成功", String body = "操作成功"}) {
    Get.snackbar(title, body,
        backgroundColor: Colors.green, colorText: Colors.white);
  }

  static void showFailed({required String title, required String body}) {
    Get.snackbar(title, body,
        backgroundColor: Colors.pinkAccent, colorText: Colors.white);
  }
}
